<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddAfterSale extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('after_sale', function (Blueprint $table) {
            $table->string('form_id')
                ->comment('售后表单id,方便通知')
                ->after('refund_logistics_sn')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

        Schema::table('after_sale', function (Blueprint $table) {
            $table->dropColumn('form_id');
        });
    }
}
